package com.whmskj.xjlhsc.mobie.ProductionManagement.mapper;

import com.whmskj.xjlhsc.mobie.ProductionManagement.pojo.dto.ListDustFilterPackingDTO;
import com.whmskj.xjlhsc.mobie.ProductionManagement.pojo.entity.BackToYourFeetAndWeigh;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.ArrayList;
import java.util.List;

@Mapper
public interface DustFilterPackingServiceMapper {

    @Delete("delete from backToYourFeetAndWeigh where id = #{id}")
    void delete(Integer id);

    void updateList(List<BackToYourFeetAndWeigh> dustFilterPackingList);

    List<BackToYourFeetAndWeigh> listDustFilterPacking(ListDustFilterPackingDTO listDustFilterPackingDTO);

    void addBatch(ArrayList<BackToYourFeetAndWeigh> objects);

    List<BackToYourFeetAndWeigh> getMyself(@Param("time") String time, @Param("empName") String empName);

    @Select("select classes666 from yg05PersonnelSchedule where scheduleDate = #{time} and classCategory = #{teamName}")
    String getShift(@Param("time") String time, @Param("teamName") String teamName);
}
